package com.yzt.zhuju.widget;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;

import androidx.core.widget.NestedScrollView;

/**
 * author : bob
 * date   : 2022/12/7
 * desc   :
 */
public class FitNestedScrollView extends NestedScrollView {

    public FitNestedScrollView(Context context) {
        this(context, null);
    }

    public FitNestedScrollView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public FitNestedScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        setFillViewport(true);
    }

    @Override
    protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {
        return 0;
    }
}
